LSTM

公式详解

遗忘门 (Forget Gate)

ft=σ(Wf[ht−1,xt]+bf)

输入门(Input Gate)

it=σ(Wi[ht−1,xt]+bi)cellt^=tanh(Wc[ht−1,xt]+bc)

细胞状态更新(Cell State)

cellt=ft⊙cellt−1+it⊙cellt^

输出门(Output Gate)

ot=σ(Wo[ht−1,xt]+bo)hiddent=ot⊙tanh(cellt)